<html>
<head><meta charset="utf-8"><title>type `A&lt;B&gt;` to `A&lt;_&gt;` · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/type.20.60A.3CB.3E.60.20to.20.60A.3C_.3E.60.html">type `A&lt;B&gt;` to `A&lt;_&gt;`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234060443"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/type%20%60A%3CB%3E%60%20to%20%60A%3C_%3E%60/near/234060443" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aliénore Bouttefeux <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/type.20.60A.3CB.3E.60.20to.20.60A.3C_.3E.60.html#234060443">(Apr 11 2021 at 17:01)</a>:</h4>
<p>Hello, <br>
For this issue (<a href="https://github.com/rust-lang/rust/issues/81576">https://github.com/rust-lang/rust/issues/81576</a>)<br>
I have a type which is an ADT with generic parameters "path::Example&lt;i32,  _ ,  ... &gt;",  is there a way to print this type as "path::Example&lt;_,  _ , ... &gt;" simpler that string manipulation ? in the surrounding code that I modify there is this <code>rustc_typeck::check::fn_ctxt::FnCtxt::ty_to_string</code> that prints "path::Example&lt;i32,  _ ,  ... &gt;", is there something similar for what I need ?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>